package com.monkey.model.synthesise;

public class SynthesisePreviewData {
	private int generation;
	private int element;
	private int reproductCount;

	private int weight;
	private int grow;
	private int reproduct;
	private int bonus;

	private float godProbability;

	public SynthesisePreviewData() {
		this.generation = 0;
		this.element = 0;
		this.weight = 0;
		this.reproductCount = 0;
		this.grow = 0;
		this.reproduct = 0;
		this.bonus = 0;
		this.godProbability = 0;
	}

	public int getGeneration() {
		return generation;
	}

	public void setGeneration(int generation) {
		this.generation = generation;
	}

	public int getElement() {
		return element;
	}

	public void setElement(int element) {
		this.element = element;
	}

	public int getWeightSrc() {
		return weight;
	}

	public float getWeight() {
		return weight * 1.0f / 100;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public int getReproductCount() {
		return reproductCount;
	}

	public void setReproductCount(int reproductCount) {
		this.reproductCount = reproductCount;
	}

	public float getGrow() {
		return grow * 1.0f / 100;
	}

	public int getGrowSrc() {
		return grow;
	}

	public void setGrow(int grow) {
		this.grow = grow;
	}

	public float getReproduct() {
		return reproduct * 1.0f / 100;
	}

	public int getReproductSrc() {
		return reproduct;
	}

	public void setReproduct(int reproduct) {
		this.reproduct = reproduct;
	}

	public float getBonus() {
		return bonus * 1.0f / 100;
	}

	public int getBonusSrc() {
		return bonus;
	}

	public void setBonus(int bonus) {
		this.bonus = bonus;
	}

	public float getGodProbability() {
		return (float) (Math.round(godProbability * 1000)) / 10;
	}

	public float getGodProbabilitySrc() {
		return godProbability;
	}

	public void setGodProbability(float godProbability) {
		this.godProbability = godProbability;
	}
}
